<template>
<el-container style=" border: 1px solid #eee ;height: 100%;">
  <el-aside width="200px" style="background-color: rgb(238, 241, 246)">
    <el-menu :router="true">
      <el-submenu index="1">
        <template slot="title"><i class="el-icon-message"></i>内容管理</template>
		<el-menu-item index="/article">文章列表</el-menu-item>
		<el-menu-item index="/cate">分类列表</el-menu-item>
        
      </el-submenu>
      
      
      </el-submenu>
    </el-menu>
  </el-aside>
  <el-container>
    <el-header>
		<el-button type="primary" @click="logout()">退出</el-button>
	</el-header>
    <el-main>
		<router-view></router-view>
	</el-main>
  </el-container>
  
  </el-container>
</el-container>
</template>
<style>
  .el-header {
    background-color: #B3C0D1;
    color: #333;
    line-height: 60px;
  }
  
  .el-aside {
    color: #333;
  }
</style>

<script>
  export default {
    data() {
      
      return {}
    },
	methods:{
		logout(){
			window.sessionStorage.clear()
			this.$router.push('/login')
		}
	}
  };
</script>